Skip to content

Document union room appearances#984

Open
Viperio19 wants to merge 2 commits intopret:mainfrom
Viperio19:appearance
Open

Document union room appearances#984
Viperio19 wants to merge 2 commits intopret:mainfrom
Viperio19:appearance

Conversation

@Viperio19
Copy link
Contributor

This PR documents unk_0205C980.c (now appearance.c) and some related ScrCmds. These handle setting and getting the appearance for the player in the union room.

int Appearance_CalculateFromTrainerInfo(u32 trainerId, int trainerGender, u32 variant);
int Appearance_GetIndex(int gender, int appearance);
int Appearance_GetTrainerClass(int gender, int appearance, int param2);
int Appearance_GetData(int gender, int appearance, int param2);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

polish: Use enum AppearanceData for the final param, and also name it.

It would also be nice to go ahead and decorate calls to this function with the appropriate enum member-constant, but that's optional.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done!

#include "string_template.h"

enum AppearanceData {
APPEARANCE_DATA_INDEX,
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

polish: = 0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants